package com.lse_api.utils;

import org.springframework.util.StringUtils;

/**
 * 返回信息合集
 */
public interface ReturnMsg {
    /* websocket 消息返回 */
    String[] MSG_USER_NOT_FOND = {"该用户已下线", "5001"};
    String[] MSG_CREATE_GROUP = {"群组创建成功", "5002"};
    String[] MSG_LIST_GROUP = {"群组列表", "5003"};
    String[] MSG_GROUP_LIST_NOT = {"暂无群组列表", "5004"};
    String[] MSG_JOIN_GROUP_OK = {"加入群组", "5006"};
    String[] MSG_JOIN_GROUP_OK_AGAN = {"重新进入", "5006"};
    String[] MSG_MATE_PEO = {"成功匹配到", "5005"};
    String[] MSG_MATE_NOT_PEO = {"当前暂无人匹配,请耐心等候", "5007"};

    // 6000 代表全局code提示
    String[] MSG_RECORD_APPLY = {"收到一条好友申请", "6000"};
    String[] MSG_FORMAT_ERROR = {"消息格式不正确", "6000"};
    String[] IM_FRIEND_RECORD_IS_YES = {"一位用户同意了你的好友申请", "6000"};
    String[] IM_FRIEND_RECORD_IS_NO = {"一位用户拒绝了你的好友申请", "6000"};
    String[] MSG_GROUP_NOT_FOND = {"该群组不存在", "6000"};
    String[] MSG_GROUP_CREATE_NOT_NAME = {"请输入群组名称", "6000"};

    String MSG_JOIN_GROUP_NO = "加入群组失败";
    String MSG_JOIN_IS_IN = "你已在当前群组中";
    String MSG_GROUP_DELETE = "你已解散群组";
    String MSG_GROUP_OUT_USER = "你已退出该群组";
    String MSG_GROUP_OUT = "退出群组";
    /* 用户消息返回 */
    String USER_ACCOUNT_IS_NULL = "请键入账号";
    String USER_PASS_IS_NULL = "请键入密码";
    String USER_EMAIL_IS_NULL = "请键入邮箱号码";
    String USER_EMAIL_REGEX = "邮箱格式错误";
    String USER_REG_COUNT = "该账号已存在";
    String USER_LOGIN_FAILURE = "账号或密码错误,请重试";
    String USER_SEAL = "该账号涉嫌违规,已被封禁";
    String USER_SEAL_TIME_END = "该账号已结束封禁";
    String USER_SELECT_NULL = "账号未找到或未封禁,请重试";
    String USER_PASS_EDIT_OLD = "请键入原密码";
    String USER_PASS_EDIT_OLD_NOT = "原密码不正确";
    String USER_PASS_EDIT_NEW = "请键入新密码";
    String USER_PASS_EDIT_ON = "新密码不得与原密码相同";

    /* LSE圈子消息返回 */
    String CIRCLE_UID = "请键入圈子标识";
    String CIRCLE_USER_UID = "请键入用户标识";
    String CIRCLE_IS_NULL = "未找到该帖子详情";
    String CIRCLE_FILE_NULL = "请选择文件";
    String CIRCLE_FILE_MAX_SIZE = "最多选择10个文件分享";
    String CIRCLE_TITLE_NULL = "请键入标题";
    String CIRCLE_COMMENT_NULL = "请键入评论内容";
    String CIRCLE_COMMENT_UID = "请键入评论标识";
    String CIRCLE_REPLY_NULL = "请键入回复内容";
    String CIRCLE_REPLY_USER_UID = "请键入回复用户标识";

    /* 关于消息回复 */
    String REPLY_DELETE_NULL = "回复信息清除失败或该信息不是你回复的";


    /* 关于圈子关注的消息返回 */
    String FOCUS_SUCCESS = "关注成功";
    int FOCUS_SUCCESS_CODE = 2001;
    String FOCUS_FAILURE = "关注失败";
    String FOCUS_NO_SUCCESS = "取消关注成功";
    int FOCUS_NO_SUCCESS_CODE = 2002;
    String FOCUS_NO_FAILURE = "取消关注失败";
    String FOCUS_IS_ME = "你不能关注自己";

    /* 关于版本消息返回 */
    String VERSION_IS_NEW = "当前版本已是最新";

    /* 关于LSE IM 的消息回复 */
    String IM_FRIEND_IS_NULL = "该好友不存在或已下线";
    String IM_GROUP_IS_NULL = "未找到该群组";
    String IM_ID_IS_NULL = "未查询到任何消息";
    String IM_FRIEND_RECORD_USER = "请选择好友";
    String IM_FRIEND_RECORD_ME = "不能添加自己为好友";
    String IM_FRIEND_RECORD_APPLY = "不能重复申请";
    String IM_FRIEND_RECORD_IS_FRIEND = "该用户已是你的好友";
    String IM_FRIEND_RECORD_IS_APPLY = "对方向你发送过申请,前往好友申请处理即可";

    /* LSE API 消息返回 */
    String API_PROJECT_NAME = "请输入项目名称";
    String API_PROJECT_NOT_ME = "你无权操作此项目";
    String API_PROJECT_API_NOT_ME = "你无权操作此接口";
    String API_PROJECT_ID = "请选择项目";
    String API_PROJECT_NULL = "找不到该项目";
    String API_PROJECT_API_NULL = "找不到此接口";
    String API_PROJECT_API_ID = "请选择接口";
    String API_PROJECT_API_NAME = "请输入接口名称";
    String API_PROJECT_API_URL = "请输入请求地址";
    String API_PROJECT_API_PARAM_NAME = "请输入参数名称";
    String API_PROJECT_API_PARAM_ID = "请选择参数";
    String API_PROJECT_API_PARAM_NULL = "该参数不存在";
    String API_PROJECT_TO_SUCCESS = "迁移成功";
    String API_PROJECT_TO_FAILURE = "迁移失败";
    String API_GROUP_NAME = "请输入项目组名称";
    String API_GROUP_ID = "请选择项目组";
    String API_GROUP_NULL = "找不到该项目组";
    String API_GROUP_NOT_ME = "你无权操作此项目组";
    String API_GROUP_PROJECT_HAVING = "此项目已迁入到其他项目组中";
    String API_GROUP_USER_AUDIT_ID = "请选择审批记录";
    String API_GROUP_USER_AUDIT_NULL = "该记录不存在";
    String API_GROUP_USER_AUDIT_REPEAT = "不可重复申请";
    String API_GROUP_USER_IS_HAVE = "你已存在于该项目组,不可重复申请";
    String API_GROUP_USER_ID = "请选择项目组成员";
    String API_GROUP_USER_ME = "你不能清除自己";
    String API_GROUP_ID_SALE = "请发送该密钥至你的好友,使用该密钥查找项目组,密钥有效期1小时";
    String API_GROUP_USER_AUDIT_OK = "你已成功加入该项目组";
    String API_GROUP_FIND_ID = "请输入项目组密钥";
    String API_GROUP_INVITER = "该用户暂无邀请者";
    String API_GROUP_USER_NOT_EX = "你已不存在于该项目组,无法迁移项目";

    /* 后台信息返回 */
    String BACK_USER_IS_NULL = "找不到该用户";
    String BACK_USER_IS_ME = "你不能对自己操作";
    String BACK_HAVE_ROLE = "该用户已持有此角色";
    String BACK_ROLE_GIVE_SUCCESS = "角色赋予成功";
    String BACK_ROLE_GIVE_FAILURE = "角色赋予失败";
    String BACK_TOKEN_DELETE_SUCCESS = "用户通行证清除成功";
    String BACK_TOKEN_DELETE_FAILURE = "用户通行证清除失败";

    /* 公共消息返回 */

    String TOKEN_IS_NULL = "请键入用户身份验证标识";
    String TOKEN_READ_IS_NULL = "暂未识别到用户身份";

    String FILE_MAX = "文件大小超出限制";
    String FILE_IS_NULL = "请选择文件";

    String NAME = "请输入名称";
    String UID = "请选择标识";

    String KEY_NULL = "请键入关键字";

    String PDF_CREATE_ERROR = "PDF生成失败";

    String NULLMSG = "暂无数据";

    String NUMBER_IS_NOT = "请输入整数(int)类型参数";

    String SAVESUCCESS = "保存成功";
    String SAVEFAILURE = "保存失败";

    String SENDSUCCESS = "发送成功";
    String SENDFAILURE = "发送失败";

    String CREATE_SUCCESS = "创建成功";
    String CREATE_FAILURE = "创建失败";

    String UPDATESUCCESS = "更新成功";
    String UPDATEFAILURE = "更新失败";

    String DELETESUCCESS = "清除成功";
    String DELETEFAILURE = "清除失败";

    String REPLYSUCCESS = "回复成功";
    String REPLYFAILURE = "回复失败";

    String DATATYPEERROR = "数据类型转换错误";

    String DATA = "请键入关键信息";

    String KEY_ERROR = "密钥错误,解析失败";

    String USERINFO_NULL = "找不到用户信息";

    String FILE_CREATE_ERROR = "数据文件存储错误";

    String FILE_CREATE_TRUE = "数据文件存储成功";

    String FILE_CREATE_FALSE = "数据文件存储失败";

    String IP_CHECK_ERROR = "IP段格式错误";

    String CONNECTION_ERROR = "连接错误";

    String CONNECTION_OK = "IP段检索完毕";

    String CONNECTION_OK_IP = "IP检索完毕";

    String CONNECTION_WAIT = "正在进行检索";

    String REPORT_FILE_ERROR = "数据上报错误";

    String REPORT_FILE_SUCCESS = "数据上报成功";

    String REPORT_FILE_FAILURE = "数据上报失败";

}
